package xiaye.crawler.core.impl;

import java.net.URI;
import java.util.HashSet;
import java.util.Set;

import xiaye.crawler.core.PageStore;
import xiaye.crawler.domain.Page;

public class MemoryPageStore implements PageStore{
	Set<URI> already = new HashSet<URI>();
	public void storePage(Page page) {
		already.add(page.getFinalUri());
	}

	public boolean addressAlreadyExists(URI address) {
		return already.contains(address);
	}

}
